/* eslint-disable max-len */
import { env } from '@/shared/constants/env';
import { BoughtCourseTabVariants, ProfileTabVariants } from '@/shared/interfaces';

export const urls = {
  appStore: 'https://apps.apple.com/ru/app/companyName/id1624893065?l=en',
  appGallery: 'https://appgallery.huawei.com/app/C107725873',
  googlePlay: 'https://play.google.com/store/apps/details?id=com.future.companyName&pli=1',
  ruStore: 'https://apps.rustore.ru/app/com.future.companyName',
  telegram: 'https://t.me/companyName_app',
  telegramSupport: 'https://t.me/companyName_support_bot',
  voz: 'https://www.who.int/publications/i/item/9789240081864',
  soyuzPediatrov:
    'https://minzdrav.midural.ru/uploads/document/4908/optimizatsii-vskarmlivaniya-detej-pervogo-goda-zhizni.pdf',
  storesDeeplink: 'https://redirect.appmetrica.yandex.com/serve/244694976942842774',
};

export const innerUrls = {
  main: '/',
  agreement: '/privacy',
  error: {
    notFound: '/404',
    serverFailed: '/500',
  },

  catalog: '/catalog',
  course: (id: string | number) => `/course/${id}`,
  boughtCourse: (tab: BoughtCourseTabVariants, id: string | number) => `/bought-course/${tab}/${id}`,

  articles: '/articles',
  article: (id: string | number) => `/articles/${id}`,

  profile: (tab: ProfileTabVariants) => `/profile/${tab}`,

  company: (id: string | number) => `/company/${id}`,

  auth: {
    email: '/auth',
    password: '/auth/password',
    registration: '/auth/registration',
  },

  aboutFeed: '/blog/feed',
  privacy: '/privacy',
  success: '/success_route',
  oferta: '/files/oferta.pdf',
};

const prefix = env.isProd ? '' : 'dev-';
export const deepLinks = {
  catalog: `${prefix}try-companyName://market`,
  course: (id: string | number) => `${prefix}try-companyName://product/${id}`,
  orders: 'try-companyName://purchases',
  buy: (id: string | number) => `${prefix}try-companyName://product-buy/${id}`,
  articles: {
    article: (id: string | number) => `${prefix}try-companyName://articles/${id}`,
    articles: `${prefix}try-companyName://articles/`,
  },
};
